package com.etc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("headerapi")
public class RequestHeaderController {

	@RequestMapping(value = "request01")
	public String request01(@RequestHeader(value = "Accept") String accept,@RequestHeader(value="Host") String host,@RequestHeader(value="User-Agent") String User_Agent) {
		System.out.println("request01 :" + accept);
		System.out.println("hoset :"+host);
		System.out.println("User-Agent :"+User_Agent);
		return "request01";

	}
}
